<?php
//Discuz Language Auto Merger
//Project Name: Discuz Language Translation helping tools
//Author: Fanha Giang a.k.a fanha99
//Email (PayPal Account): fanha99@gmail.com
//License: GPL v2
//You are not allowed to remove these comment!
?>
<?php
require_once 'discuz_langlib.php';

$mlang = "sc";
$tlang = "vn";
$genfile = "source/language/". $mlang. "/lang_admincp.php";

if (isset($_GET['mlang'])) {
	$mlang = $_GET['mlang'];
}

if (isset($_GET['tlang'])) {
	$tlang = $_GET['tlang'];
}

if (isset($_GET['genfile'])) {
	$genfile = $_GET['genfile'];
}

$a = explode("/", trim($genfile));
$filename = $a[count($a) - 1];

header('Content-Disposition: attachment; filename="' . $filename . '"');
echo "<?php

/**
 *      [Discuz!] (C)2001-2099 Comsenz Inc.
 *      This is NOT a freeware, use is subject to license terms
 *		
 *      \$Id: $filename 
 *      This file was generation by Discuz Language Auto Merger
 */


\$lang = array
(
";

genfile($genfile);

echo "
);

?>";
?>
